package com.hrm.dao;

import java.util.List;
import java.util.Map;
import com.hrm.entity.Role;

public interface RoleMapper {

	public int deleteRoleById(long id);

	public Role selectRoleById(long id);

	public List<Role> selectRoleByMap(Map<String,Object> map);

	public List<Role> selectRole(Role role);

	public List<Role> selectAllRole();

	public int insertRole(Role role);

	public int updateRole(Role role);

	public int deleteRole(Role role);

	public int updateRoleByMap(Map<String,Object> map);

	public int deleteRoleByMap(Map<String,Object> map);
	public int getAllRoleCounts();
	public int getRoleCounts(Role role);
	public int getRoleCountsByMap(Map<String,Object> map);
}
